libxenlight: implement libxl_set_memory_target
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Dec 2009 10:44:11 +0000 (10:44 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Dec 2009 10:44:11 +0000 (10:44 +0000)
commit9905ac2b90a3e7cecd9e7dfe21c252362e7080b2
tree2e8d84e9256b9b77b8af6540a26e86b7e5115e9c
parent30c666cd1cedf5dfebccd128267ae7373c292616
libxenlight: implement libxl_set_memory_target

This patch adds a target_memkb parameter to libxl_domain_build_info to
set the target memory for the VM at build time and a new function
called libxl_set_memory_target to dynamically modify the memory target
of a VM at run time.  Finally a new command "mem-set" is added to xl
that calls directly libxl_set_memory_target.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h
tools/libxl/xl.c